package com.iee.patterns.example.state.base;

public class Test {
    public static void main(String[] args) {
        Context context = new Context();
        // 使用默认状态
        context.handle();
        // 切换状态为ConcreteStateB
        context.setState(new ConcreteStateB());
        context.handle();
    }
}
